package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.HospitalHomeDataTask.HospitalHomeDataRequest;
import com.smiier.skin.net.HospitalHomeDataTask.HospitalHomeDataResponse;
import com.smiier.skin.net.entity.UserWrapper;
import com.smiier.skin.util.GlobalSettings;

/*
 * 治疗项目列表
 */
public class HospitalHomeDataTask extends
		NetTask<HospitalHomeDataRequest, HospitalHomeDataResponse> {
	public static class HospitalHomeDataRequest extends ORequest {
		public String hospital;
	}

	public static class HospitalHomeDataResponse implements INoProguard {
		public String Name;
		public String FullName;
		public String Level;
		public String Address;
		public String Tel;
		public ArrayList<UserWrapper> doctor_info;
		public ArrayList<TreatmentItem> treatmentproject;
	}

	public static class TreatmentItem implements INoProguard {
		public int id;
		public String name;
		public String url;
		public int discount_price;
		public int original_price;
		public String hospital;

	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/hospitalHomeData";
		mRequestMethod = METHOD_POST;
	}

}
